#include "project.h"
TEA_p Student_Score_Stytem_Init()
{
    //先申请大头结点的堆空间
    TEA_p teacher = (TEA_p)malloc(sizeof(TEA_NODE));
    if (teacher == (TEA_p)NULL)
    {
        perror("malloc...");
        return (TEA_p)NULL;
    }
    
    memset(teacher,0,sizeof(TEA_NODE));
    strcpy(teacher->teacher_name,"高育良");
    strcpy(teacher->teacher_passwd,"gyl666");

    //创建小头节点
    teacher->head_node = (STU_LINK)malloc(sizeof(STU_NODE));
    if (teacher->head_node == NULL) {
        perror("malloc...");
        free(teacher); // 释放已分配的内存
        return NULL;
    }
    memset(teacher->head_node, 0, sizeof(STU_NODE));
    teacher->head_node->next = teacher->head_node;
    teacher->head_node->prev = teacher->head_node;



    return teacher;

}